<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新增商品</title>
    <link rel="stylesheet"  type="text/css"  href="/lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/style.css">
    <link rel="stylesheet" href="/css/custom.css">
    <link rel="stylesheet" href="/css/iosOverlay.css">
    <link rel="stylesheet" href="/css/prettify.css">
    <script src="/lib/plug/modernizr-2.0.6.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/css/layer.css">
    <link rel="stylesheet"   href="/css/add.css">
</head>
<body>
<div class="panel panel-default">
    <div class="panel-body" style="font-size: 12px">
        <form class="form-horizontal" enctype="multipart/form-data" method="post" action="insertCategroyThree">
            <div class="form-group">
                <label  class="col-xs-3 col-xs-offset-1 control-label">一级分类：</label>
                <div class="col-xs-8">
                    <div class="row">
                        <div class="col-xs-3 dropdown">
                            <select class="form-control" id="first" >
                                <option value="" id="firstclass">请选择一级分类</option>
                            </select>
                        </div>
                        <div class="col-xs-3 " id="text1">
                            <input type="text" class="form-control"  placeholder="家用家电">
                        </div>
                        <div class="col-xs-2 " id="btn1">
                            <a href="javascript:;" class="btn btn-info " id="addfirst">新增一级分类</a>
                        </div>
                    </div>
                </div>
            </div>
                <div class="form-group hide" id="secondwrapper">
                    <label  class="col-xs-3 col-xs-offset-1 control-label">二级分类：</label>
                    <div class="col-xs-8">
                        <div class="row">
                            <div class="col-xs-3 dropdown">
                                <select class="form-control" id="section">
                                    <option value="" id="sectionclass">请选择二级分类</option>
                                </select>
                            </div>
                            <div class="col-xs-3" id="text2">
                                <input type="text" class="form-control"  placeholder="手机数码">
                            </div>
                            <div class="col-xs-2" id="btn2">
                                <a href="javascript:;" class="btn btn-info " id="addsection">新增二级分类</a>
                            </div>
                        </div>
                    </div>
                </div>
            <div id="threewrapper" class="hide">
            <div class="form-group " >
                <label  class="col-xs-3 col-xs-offset-1 control-label">三级分类：</label>
                <div class="col-xs-8">
                    <div class="row">
                        <div class="col-xs-3 dropdown">
                            <input type="text" id="text3" class="form-control" name="categroy_name"  placeholder="手机">
                        </div>
                        <div class="col-xs-3">
                            <input type="text" id="categroy" name="categroy"  value="" style="visibility: hidden">
                        </div>
                        <div class="col-xs-3">
                            <input type="text" id="type" name="type" value="3"  style="visibility: hidden">
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group " >
                <label  class="col-xs-3 col-xs-offset-1 control-label">请选择三级图片:</label>
                <div class="col-xs-8">
                    <div class="row">
                        <div class="col-xs-3 ">
                            <div style="border: 1px solid #bbbbbb;width: 120px;height: 120px"><img id="ImgPr" width="120" height="120"/></div>
                            <input type="file" id="up" name="img"/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group " >
                <label  class="col-xs-3 col-xs-offset-1 control-label"></label>
                <div class="col-xs-8">
                    <div class="row">
                        <div class="col-xs-2 ">
                            <button type="submit" id="addthree" class="btn btn-info " >新增三级分类</button>
                        </div>
                    </div>
                </div>
            </div>
            </div>
        </form>
    </div>
</div>
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/iosOverlay.js"></script>
<script src="/lib/plug/spin.min.js"></script>
<script src="/lib/plug/prettify.js"></script>
<script src="/js/method.js"></script>
<script src="/js/upimg.js"></script>
<script src="/js/insert.js"></script>
</body>
</html>